package search;

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

public class SearchUser{
    SearchMQL searchMQL=new SearchMQL();
    String sql;
    /***
     *
     * @return 返回所有菜谱
     * @throws SQLException 抛出Sql异常
     */
    public List<Recipe> searchAll() throws SQLException {
        SearchRecipes searchRecipes=new SearchRecipes();
        return searchRecipes.searchAll();
    }
    public List<User> searchAllUser() throws SQLException {
        List<User> users=new ArrayList<User>();
        SearchMQL searchMQL=new SearchMQL();
        String sql="select * from accounts";
        users=searchMQL.mysqlUserSearch(sql);
        return users;
    }
}
